
const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    await ctx.render('page/home/index.tpl', { data: 'i am from controller' });
  }
}

module.exports = HomeController;
